import {get,post} from '../../http';

// 维修人员管理
export function EquipmentMaintainEmp() {
	return {
		/**
		 * 增加 维修人员
		 * @param {*} params 
		 * @returns 
		 */
		 addEquipmentMaintainEmp: (params) => {
			return post({
				url: '/hr/ba-equipment-maintain-emp/addEquipmentMaintainEmp',
				data: params,
			});
		},
		/**
		 * 修改 维修人员
		 * @param {*} params 
		 * @returns 
		 */
		 updateEquipmentMaintainEmp: (params) => {
			return post({
				url: '/hr/ba-equipment-maintain-emp/updateEquipmentMaintainEmp',
				data: params,
			});
		},
		/**
		 * 获取生效的 维修人员
		 * @returns 
		 */
		getAllActiveDormitoryEmployee: () => {
			return get({
				url: '/hr/ba-equipment-maintain-emp/getAllActiveDmDormitoryEmployee',
			});
		},
            /**
             * 获取所有维修人员
             * @param {*} params 
             * @returns 
             */
			 getMaintainEmpList: (params) => {
                return post({	
                    url: '/hr/ba-equipment-maintain-emp/getMaintainEmpList',
                    data: params,
                });
            },
		
        }
}


// 宿舍人员管理
export function DormitoryEmployee() {
	return {

			/**
		 * 通过员工编号查询员工
		 * @param {*} params 
		 * @returns 
		 */
			 getEmpListById: (params) => {
				return post({
					url: '/hr/dormitory-employee/getEmpListById',
					data: params,
				});
			},
		/**
		 * 增加宿舍人员
		 * @param {*} params 
		 * @returns 
		 */
		 adddormitoryEmployee: (params) => {
			return post({
				url: '/hr/dormitory-employee/addDormitoryEmployee',
				data: params,
			});
		},
		/**
		 * 修改宿舍人员
		 * @param {*} params 
		 * @returns 
		 */
		 updateDormitoryEmployee: (params) => {
			return post({
				url: '/hr/dormitory-employee/updateDormitoryEmployee',
				data: params,
			});
		},
		/**
		 * 获取生效的宿舍人员
		 * @returns 
		 */
		getAllActiveDormitoryEmployee: () => {
			return get({
				url: '/hr/dormitory-employee/getAllActiveDmDormitoryEmployee',
			});
		},
            /**
             * 获取所有宿舍人员
             * @param {*} params 
             * @returns 
             */
			 getDormitoryEmployeeList: (params) => {
                return post({	
                    url: '/hr/dormitory-employee/getDormitoryEmployeeList',
                    data: params,
                });
            },
			/**
             * 获取所有宿舍人员入住
             * @param {*} params 
             * @returns 
             */
			 getDormitoryEmployeeList2: (params) => {
			  return post({	
				url: '/hr/dormitory-employee/getDormitoryEmployeeList2',
				data: params,
	});
},
			/**
             * 通过房间id获取所有有床位的宿舍人员
             * @param {*} params 
             * @returns 
             */
			 getDormitoryEmployeeListByDormitoryId: (params) => {
                return post({	
                    url: '/hr/dormitory-employee/getDormitoryEmployeeListByDormitoryId',
                    data: params,
                });
            },

			
			/**
             * 通过宿舍区域查询所有未入住的人员（宿舍区域条件后面加上）
             * @param {*} params 
             * @returns 
             */
			 getlistByruzhuStatus: (params) => {
                return post({	
                    url: '/hr/dormitory-employee/getlistByruzhuStatus',
                    data: params,
                });
            }
        }
}


// 房间基础资料（宿舍床位）
export function dormitoryBed() {
	return {
		/**
		 * 增加宿舍床位
		 * @param {*} params 
		 * @returns 
		 */
		 addDormitoryBed: (params) => {
			return post({
				url: '/hr/dormitory-bed/addDormitoryBed',
				data: params,
			});
		},
		/**
		 * 修改宿舍床位
		 * @param {*} params 
		 * @returns 
		 */
		 updateDormitoryBed: (params) => {
			return post({
				url: '/hr/dormitory-bed/updateDormitoryBed',
				data: params,
			});
		},
		/**
		 * 获取生效的宿舍床位
		 * @returns 
		 */
		getAllActiveDormitoryBed: () => {
			return get({
				url: '/hr/dormitory-bed/getAllActiveDormitoryBed',
			});
		},
            /**
             * 获取所有宿舍床位
             * @param {*} params 
             * @returns 
             */
			 getDormitoryBedList: (params) => {
                return post({	
                    url: '/hr/dormitory-bed/getDormitoryBedList',
                    data: params,
                });
            },
			    /**
             * 通过房间id获取所有宿舍床位
             * @param {*} params 
             * @returns 
             */
				 getDormitoryBedListByDormitoryId: (params) => {
					return post({	
						url: '/hr/dormitory-bed/getDormitoryBedListByDormitoryId',
						data: params,
					});
				}
        }
}

// 住宿管理
export function DormitoryLodging() {
	return {
		/**
		 * 增加住宿管理日志
		 * @param {*} params 
		 * @returns 
		 */
		 addDormitoryLodging: (params) => {
			return post({
				url: '/hr/dormitory-lodging/addDormitoryLodging',
				data: params,
			});
		},
		/**
		 * 修改住宿管理日志
		 * @param {*} params 
		 * @returns 
		 */
		 updateDormitoryEmployee: (params) => {
			return post({
				url: '/hr/dormitory-lodging/updateDormitoryEmployee',
				data: params,
			});
		},
		/**
		 * 获取生效的住宿管理日志
		 * @returns 
		 */
		getAllActiveDormitoryEmployee: () => {
			return get({
				url: '/hr/dormitory-lodging/getAllActiveDmDormitoryEmployee',
			});
		},
            /**
             * 获取所有住宿管理日志
             * @param {*} params 
             * @returns 
             */
			 getDormitoryLodgingList: (params) => {
                return post({	
                    url: '/hr/dormitory-lodging/getDormitoryLodgingList',
                    data: params,
                });
            },

			/**
             * 通过id获取所有宿舍人员
             * @param {*} params 
             * @returns 
             */
			 getDormitoryEmployeeListByDormitoryId: (params) => {
                return post({	
                    url: '/hr/dormitory-lodging/getDormitoryEmployeeListByDormitoryId',
                    data: params,
                });
            },

			/**
             * 退宿
             * @param {*} params 
             * @returns 
             */
			 addDormitoryLodgingOut: (params) => {
                return post({	
                    url: '/hr/dormitory-lodging/addDormitoryLodgingOut',
                    data: params,
                });
            },

			/**
             * 获取所有的退宿日志
             * @param {*} params 
             * @returns 
             */
			 getDormitoryLodgingOutList: (params) => {
                return post({	
                    url: '/hr/dormitory-lodging/getDormitoryLodgingOutList',
                    data: params,
                });
            }
        }
}


//宿舍检查项目

export function SanitaryInspectionDormitoryCheckItem() {
	return {
		// 文件上传
		/**
		 * 文件上传
		 * @param {*} params 
		 * @returns 
		 */
		 uploadImage: (params) => {
			return post({
				url: '/hr/sanitary-inspection-dormitory-file/uploadImage',
				data: params,
			});
		},
		/**
		 * 增加宿舍检查项目
		 * @param {*} params 
		 * @returns 
		 */
		 addSanitaryInspectionDormitoryCheckItem: (params) => {
			return post({
				url: '/hr/sanitary-inspection-dormitory-check-item/addSanitaryInspectionDormitoryCheckItem',
				data: params,
			});
		},
		/**
		 * 修改宿舍检查项目
		 * @param {*} params 
		 * @returns 
		 */
		 updateItemScore: (params) => {
			return post({
				url: '/hr/sanitary-inspection-dormitory-check-item/updateItemScore',
				data: params,
			});
		},
		/**
		 * 获取生效的宿舍检查项目
		 * @returns 
		 */
		getSanitaryInspectionDormitoryCheckItem: () => {
			return get({
				url: '/hr/sanitary-inspection-dormitory-check-item/getSanitaryInspectionDormitoryCheckItem',
			});
		},
            /**
             * 获取所有宿舍检查项目
             * @param {*} params 
             * @returns 
             */
			 getSanitaryInspectionDormitoryCheckItemList: (params) => {
                return post({	
                    url: '/hr/sanitary-inspection-dormitory-check-item/getSanitaryInspectionDormitoryCheckItemList',
                    data: params,
                });
            },

			 /**
             * 宿舍编号获取该宿舍的所有卫生检查项目
             * @param {*} params 
             * @returns 
             */
			  getAllItems: (params) => {
                return post({	
                    url: '/hr/sanitary-inspection-dormitory-check-item/getAllItems',
                    data: params,
                });
            },

			 /**
             * 宿舍编号获取该宿舍的所有卫生检查项目
             * @param {*} params 
             * @returns 
             */
			  getAllItemsByDormitoryId: (params) => {
                return post({	
                    url: '/hr/sanitary-inspection-dormitory-check-item/getAllItemsByDormitoryId',
                    data: params,
                });
            },
		}
}


//卫生检查
export function SanitaryInspection() {
	return {
		  /**
             * 获取所有卫生检查
             * @param {*} params 
             * @returns 
             */
		   getSanitaryInspectionList2: (params) => {
			return post({	
				url: '/hr/sanitary-inspection/getSanitaryInspectionList2',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 增加卫生检查
		 * @param {*} params 
		 * @returns 
		 */
		 addSanitaryInspection: (params) => {
			return post({
				url: '/hr/sanitary-inspection/addDormitoryEmployee',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改卫生检查
		 * @param {*} params 
		 * @returns 
		 */
		 updateSanitaryInspection: (params) => {
			return post({
				url: '/hr/sanitary-inspection/updateDormitoryEmployee',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取生效的卫生检查
		 * @returns 
		 */
		getSanitaryInspection: () => {
			return get({
				url: '/hr/sanitary-inspection/getAllActiveDmDormitoryEmployee',
				method: 'get',
			});
		},
            /**
             * 获取所有卫生检查
             * @param {*} params 
             * @returns 
             */
			 getSanitaryInspectionList: (params) => {
                return post({	
                    url: '/hr/sanitary-inspection/getSanitaryInspectionList',
                    method: 'post',
                    data: params,
                });
            },
			/**
             * 增加卫生检查,宿舍卫生检查，宿舍卫生检查项目
             * @param {*} params 
             * @returns 
             */
			 addMore: (params) => {
                return post({	
                    url: '/hr/sanitary-inspection/addMore',
                    method: 'post',
                    data: params,
                });
            },
/**
             * 通过卫生检查获取卫生检查项目和宿舍
             * @param {*} params 
             * @returns 
             */
			 getSanitaryInspectionListById: (params) => {
                return post({	
                    url: '/hr/sanitary-inspection/getSanitaryInspectionListById',
                    method: 'post',
                    data: params,
                });
            },
			// 点击宿舍检查，显示要检查的宿舍
			getDormitoryByAreaIdAndCheckId: (params) => {
                return post({	
                    url: '/hr/sanitary-inspection/getDormitoryByAreaIdAndCheckId',
                    method: 'post',
                    data: params,
                });
            },

			// 所有宿舍检查完毕后，修改卫生检查状态为已检查
				updateCheckStatus: (params) => {
                return post({	
                    url: '/hr/sanitary-inspection/updateCheckStatus',
                    method: 'post',
                    data: params,
                });
            },
		}
}


//检查宿舍
export function SanitaryInspectionDormitory() {
	return {
		/**
		 * 增加检查宿舍
		 * @param {*} params 
		 * @returns 
		 */
		 addSanitaryInspectionDormitory: (params) => {
			return post({
				url: '/hr/sanitary-inspection-dormitory/addSanitaryInspectionDormitory',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改检查宿舍
		 * @param {*} params 
		 * @returns 
		 */
		 updateSanitaryInspection: (params) => {
			return post({
				url: '/hr/sanitary-inspection-dormitory/updateDormitoryEmployee',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取生效的卫生检查
		 * @returns 
		 */
		getSanitaryInspection: () => {
			return get({
				url: '/hr/sanitary-inspection-dormitory/getAllActiveDmDormitoryEmployee',
				method: 'get',
			});
		},
            /**
             * 获取所有卫生检查
             * @param {*} params 
             * @returns 
             */
			 getListBySanitaryId: (params) => {
                return post({	
                    url: '/hr/sanitary-inspection-dormitory/getListBySanitaryId',
                    method: 'post',
                    data: params,
                });
            },
		
		}
}


//卫生检查结果
export function SanitaryInspectionReuslt() {

	return {
		/**
             * 通过检查id和宿舍id获取当前宿舍结果
             * @param {*} params 
             * @returns 
             */
		 getSanitaryInspectionDormitoryByCheckIdAndDormitoryId: (params) => {
			return post({	
				url: '/hr/sanitary-inspection-result/getSanitaryInspectionDormitoryByCheckIdAndDormitoryId',
				method: 'post',
				data: params,
			});
		},
			/**
             *通过宿舍检查id获取当前宿舍文件上传
             * @param {*} params 
             * @returns 
             */
			 getSanitaryInspectionFiletBySdId: (params) => {
				return post({	
					url: '/hr/sanitary-inspection-dormitory-file/getSanitaryInspectionFiletBySdId',
					method: 'post',
					data: params,
				});
			},
		/**
             * 通过检查id和宿舍id获取当前宿舍结果
             * @param {*} params 
             * @returns 
             */
		 getSanitaryInspectionResultListByCheckIdAndDormitoryId: (params) => {
			return post({	
				url: '/hr/sanitary-inspection-result/getSanitaryInspectionResultListByCheckIdAndDormitoryId',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 增加卫生检查结果
		 * @param {*} params 
		 * @returns 
		 */
		 addSanitaryInspectionResult: (params) => {
			return post({
				url: '/hr/sanitary-inspection-result/addSanitaryInspectionResult',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改卫生检查结果
		 * @param {*} params 
		 * @returns 
		 */
		 updateSanitaryInspectionResult: (params) => {
			return post({
				url: '/hr/sanitary-inspection-result/updateSanitaryInspectionResult',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取生效的卫生检查结果
		 * @returns 
		 */
		getSanitaryInspectionReuslt: () => {
			return get({
				url: '/hr/sanitary-inspection-result/getAllActiveDmDormitoryEmployee',
				method: 'get',
			});
		},
            /**
             * 获取所有卫生检查结果
             * @param {*} params 
             * @returns 
             */
			 getSanitaryInspectionResultList: (params) => {
                return post({	
                    url: '/hr/sanitary-inspection-result/getSanitaryInspectionResultList',
                    method: 'post',
                    data: params,
                });
            },
			/**
             * 通过检查id获取宿舍评比结果列表
             * @param {*} params 
             * @returns 
             */
			 getSanitaryInspectionResultListByCheckId: (params) => {
                return post({	
                    url: '/hr/sanitary-inspection-result/getSanitaryInspectionResultListByCheckId',
                    method: 'post',
                    data: params,
                });
            }
		}
}


// 设备维修
export function EquipmentRepair() {
	return {
			/**
		 * 批量维修
		 * @param {*} params 
		 * @returns 
		 */
			 batchWeixiu: (params) => {
				console.log(params)
				return post({
					url: '/hr/equipment-repair/batchWeixiu',
					method: 'post',
					data: params,
				});
			},
			/**
		 * 批量审核
		 * @param {*} params 
		 * @returns 
		 */
			 batchShenhe: (params) => {
				console.log(params)
				return post({
					url: '/hr/equipment-repair/batchShenhe',
					method: 'post',
					data: params,
				});
			},
			/**
		 * 批量派工
		 * @param {*} params 
		 * @returns 
		 */
			 batchPaigong: (params) => {
				console.log(params)
				return post({
					url: '/hr/equipment-repair/batchPaigong',
					method: 'post',
					data: params,
				});
			},
			/**
		 * 查詢宿舍维修上报设备分页
		 * @param {*} params 
		 * @returns 
		 */
			 queryEquipByRepairDormitoryIdPage: (params) => {
				console.log(params)
				return post({
					url: '/hr/equipment-repair/queryEquipByRepairDormitoryIdPage',
					method: 'post',
					data: params,
				});
			},
		/**
		 * 查詢宿舍维修上报设备
		 * @param {*} params 
		 * @returns 
		 */
		 queryEquipByRepairDormitoryId: (params) => {
			console.log(params)
			return post({
				url: '/hr/equipment-repair/queryEquipByRepairDormitoryId',
				method: 'post',
				data: params,
			});
		},
			/**
		 * 批量增加设备维修
		 * @param {*} params 
		 * @returns 
		 */
			 addBatchEquipmentRequir: (params) => {
				return post({
					url: '/hr/equipment-repair/addBatchEquipmentRequir',
					method: 'post',
					data: params,
				});
			},
		/**
		 * 增加设备维修
		 * @param {*} params 
		 * @returns 
		 */
		 addEquipmentRequir: (params) => {
			return post({
				url: '/hr/equipment-repair/addEquipmentRequir',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改维修信息
		 * @param {*} params 
		 * @returns 
		 */
		 updateEquipmentRequir: (params) => {
			return post({
				url: '/hr/equipment-repair/updateEquipmentRequir',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改维修信息
		 * @param {*} params 
		 * @returns 
		 */
		 updateEquipmentRequir2: (params) => {
			return post({
				url: '/hr/equipment-repair/updateEquipmentRequir2',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取生效的住宿管理日志
		 * @returns 
		 */
		getAllActiveEquipmentRepair: () => {
			return get({
				url: '/hr/equipment-repair/getAllActiveDmDormitoryEmployee',
				method: 'get',
			});
		},
            /**
             * 获取所有住宿管理日志
             * @param {*} params 
             * @returns 
             */
			 getAllEquipmentRquirList: (params) => {
                return post({	
                    url: '/hr/equipment-repair/getAllEquipmentRquirList',
                    method: 'post',
                    data: params,
                });
            },
			     /**
             * 获取所有角色为维修人员的用户
             * @param {*} params 
             * @returns 
             */
				  selectUserByRoleId: (params) => {
					return post({	
						url: '/hr/equipment-repair/selectUserByRoleId',
						method: 'post',
						data: params
					});
				}
        }
}


// 设备保养
export function EquipmentMain() {
	return {
		/**
		 * 增加 设备保养
		 * @param {*} params 
		 * @returns 
		 */
		 addEquipmentMaintain: (params) => {
			return post({
				url: '/hr/equipment-maintain/addEquipmentMaintain',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改 设备保养
		 * @param {*} params 
		 * @returns 
		 */
		 updateEquipmentRequir: (params) => {
			return post({
				url: '/hr/equipment-maintain/updateEquipmentRequir',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取生效的 设备保养
		 * @returns 
		 */
		getAllActiveEquipmentRepair: () => {
			return get({
				url: '/hr/equipment-maintain/getAllActiveDmDormitoryEmployee',
				method: 'get',
			});
		},
            /**
             * 获取所有 设备保养
             * @param {*} params 
             * @returns 
             */
			 getAllEquipmentMaintainList: (params) => {
                return post({	
                    url: '/hr/equipment-maintain/getAllEquipmentMaintainList',
                    method: 'post',
                    data: params,
                });
            },

			 /**
             * 获取设备保养获取当前保养明细
             * @param {*} params 
             * @returns 
             */
			  queryDetailByEquipmentMainId: (params) => {
                return post({	
                    url: '/hr/equipment-maintain/queryDetailByEquipmentMainId',
                    method: 'post',
                    data: params,
                });
            }
        }
}



// 水电费管理
export function MeterReading() {
	
	return {
		/**
		 * 修改单个水电费管理
		 * @param {*} params 
		 * @returns 
		 */
		 update: (params) => {
			return post({
				url: '/hr/meter-reading/update',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 增加单个水电费管理
		 * @param {*} params 
		 * @returns 
		 */
		 addMeterReadingRuzhu: (params) => {
			return post({
				url: '/hr/meter-reading/addMeterReadingRuzhu',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 增加水电费管理
		 * @param {*} params 
		 * @returns 
		 */
		 addMeterReading: (params) => {
			return post({
				url: '/hr/meter-reading/addMeterReading',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改水电费管理
		 * @param {*} params 
		 * @returns 
		 */
		 updateMeterReading: (params) => {
			return post({
				url: '/hr/meter-reading/updateMeterReading',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取生效的水电费管理
		 * @returns 
		 */
		 MeterReading: () => {
			return get({
				url: '/hr/meter-reading/MeterReading',
				method: 'get',
			});
		},
            /**
             * 获取所有水电费管理
             * @param {*} params 
             * @returns 
             */
			 getMeterReadingList: (params) => {
                return post({	
                    url: '/hr/meter-reading/getMeterReadingList',
                    method: 'post',
                    data: params,
                });
			 }
        }
}


// 住宿费用
export function DormitoryExpenses() {
	return {
		/**
		 * 判断当月是否生成过住宿费用
		 * @param {*} params 
		 * @returns 
		 */
		 panduan: (params) => {
			return post({
				url: '/hr/dormitory-expenses/panduan',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改宿舍
		 * @param {*} params 
		 * @returns 
		 */
		 updateDormitory: (params) => {
			return post({
				url: '/hr/dormitory/updateDormitory',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取生效的宿舍
		 * @returns 
		 */
		getAllActiveDormitory: (params) => {
			return get({
				url: '/hr/dormitory/getAllActiveBaDormitory',
				method: 'get',
				data: params,
			});
		},
		/**
		 * 通过区域id获取生效的宿舍
		 * @returns 
		 */
		 getAllActiveDormitorybyAreaId: (params) => {
			return post({
				url: '/hr/dormitory/getAllActiveDormitorybyAreaId',
				method: 'post',
				data: params,
			});
		},
            /**
             * 通过区域id获取所有住宿费用
             * @param {*} params 
             * @returns 
             */
			 getDormitoryExpensesList: (params) => {
                return post({	
                    url: '/hr/dormitory-expenses/getDormitoryExpensesList',
                    method: 'post',
                    data: params,
                });
            }
        }
}



// 业务办理
export function HandleTheBusiness() {
	return {
		/**
		 * 增加业务办理
		 * @param {*} params 
		 * @returns 
		 */
		 addHandleTheBusiness: (params) => {
			return post({
				url: '/hr/handle-the-business/addHandleTheBusiness',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改业务办理
		 * @param {*} params 
		 * @returns 
		 */
		 updateHandleTheBusiness: (params) => {
			return post({
				url: '/hr/handle-the-business/updateHandleTheBusiness',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取生效的业务办理
		 * @returns 
		 */
		 MeterReading: () => {
			return get({
				url: '/hr/handle-the-business/MeterReading',
				method: 'get',
			});
		},
            /**
             * 获取所有业务办理
             * @param {*} params 
             * @returns 
             */
			 getHandleTheBusinessList: (params) => {
                return post({	
                    url: '/hr/handle-the-business/getHandleTheBusinessList',
                    method: 'post',
                    data: params,
                });
			 }
        }
}

// 外租宿舍管理
export function DormitoryRent() {
	return {
		/**
		 *文件上传
		 * @param {*} params 
		 * @returns 
		 */
		 FileUpload: (params) => {
			return post({
				url: '/hr/dormitory-rent/FileUpload',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 增加外租宿舍
		 * @param {*} params 
		 * @returns 
		 */
		 addDormitoryRent: (params) => {
			return post({
				url: '/hr/dormitory-rent/addDormitoryRent',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改外租宿舍
		 * @param {*} params 
		 * @returns 
		 */
		 updateDormitoryRent: (params) => {
			return post({
				url: '/hr/dormitory-rent/updateDormitoryRent',
				method: 'post',
				data: params,
			});
		},
            /**
             * 获取所有外租宿舍
             * @param {*} params 
             * @returns 
             */
			 getDormitoryRentlist: (params) => {
                return post({	
                    url: '/hr/dormitory-rent/getDormitoryRentlist',
                    method: 'post',
                    data: params,
                });
			 }
        }
}

// 公摊管理
export function PublicShare() {
	return {
		/**
		 * 增加公摊
		 * @param {*} params 
		 * @returns 
		 */
		 addPublicShare: (params) => {
			return post({
				url: '/hr/public-share/addPublicShare',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改公摊
		 * @param {*} params 
		 * @returns 
		 */
		 updatePublicShare: (params) => {
			return post({
				url: '/hr/public-share/updatePublicShare',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取生效的宿舍人员
		 * @returns 
		 */
		getAllActiveDormitoryEmployee: () => {
			return get({
				url: '/hr/dormitory-employee/getAllActiveDmDormitoryEmployee',
				method: 'get',
			});
		},
            /**
             * 获取所有宿公摊
             * @param {*} params 
             * @returns 
             */
			 getPublicShareList: (params) => {
                return post({	
                    url: '/hr/public-share/getPublicShareList',
                    method: 'post',
                    data: params,
                });
            }
        }
}

// 公摊宿舍
export function PublicShareDormitory() {
	return {
			/**
		 *通过id批量删除
		 * @param {*} params 
		 * @returns 
		 */
		 delPublicShareDormitory: (params) => {
			return post({
				url: '/hr/public-share-dormitory/delPublicShareDormitory',
				method: 'post',
				data: params,
			});
		},
		/**
		 *通过公摊id获取公摊宿舍列表分页
		 * @param {*} params 
		 * @returns 
		 */
		 getPublicShareDormitoryByPublicShareId: (params) => {
			return post({
				url: '/hr/public-share-dormitory/getPublicShareDormitoryByPublicShareId',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 增加公摊宿舍
		 * @param {*} params 
		 * @returns 
		 */
		 addPublicShareDormitory: (params) => {
			return post({
				url: '/hr/public-share-dormitory/addPublicShareDormitory',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改公摊宿舍
		 * @param {*} params 
		 * @returns 
		 */
		 updatePublicShareDormitory: (params) => {
			return post({
				url: '/hr/public-share-dormitory/updatePublicShareDormitory',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取生效的宿舍人员
		 * @returns 
		 */
		getAllActiveDormitoryEmployee: () => {
			return get({
				url: '/hr/dormitory-employee/getAllActiveDmDormitoryEmployee',
				method: 'get',
			});
		},
            /**
             * 获取所有公摊宿舍
             * @param {*} params 
             * @returns 
             */
			 getPublicShareDormitoryListBypublicShareId: (params) => {
                return post({	
                    url: '/hr/public-share-dormitory/getPublicShareDormitoryListBypublicShareId',
                    method: 'post',
                    data: params,
                });
            }
        }
}
